package com.boss.core.manage;

import com.boss.core.manage.BossProperty;
import hudson.CopyOnWrite;
import org.kohsuke.stapler.DataBoundConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * Property Section in Boss Management console
 * @author Momin Noor Khan
 */
public class PropertySection {
    private String name;
    private String description;

    @CopyOnWrite
    private volatile List<BossProperty> properties = new ArrayList<BossProperty>();


    @DataBoundConstructor
    public PropertySection(String name, String description, List<BossProperty> properties) {
        this.name = name;
        this.description = description;
        this.properties = properties;
    }

    public String getName() {
        return this.name;
    }

    public String getDescription() {
        return this.description;
    }

    public List<BossProperty> getProperties() {
        return properties;
    }
}
